<include file="Admin:header" />
<form method='post' id="myform" action="<if condition="$action_name=='add'">{:U('Diy/insert')}<else />{:U('Diy/update')}</if>">
<table cellpadding=0 cellspacing=0 width="100%" class="table_form" >

<tr>
	<th width="120">父节点:</th>
	<td><SELECT name="parentid">
	<option value="0">--顶级--</option>
	{$select_categorys}
	</SELECT></td>
</tr>
	<tr>
		<th width="120">名称:</th>
		<td><input name="name" type="text"  class="input-text" size="8" id="name" value="{$vo.name}"></td>
	</tr>

	<tr>
		<th>描述:</th>
		<td><input name="desc" type="text"  class="input-text" size="40" id="desc" value="{$vo.desc}"></td>
	</tr>

	<tr>
		<th>价格:</th>
		<td><input name="jiage" type="text"  class="input-text" size="5" id="jiage" value="{$vo.jiage}"></td>
	</tr>
	<tr>
	  <th>分类:</th>
      <php>$cat=array(0=>'不是分类',1=>'是分类');</php>
	  <td><html:select name="cat" options="cat" selected="vo['cat']" />
	  </td>
	  </tr>
      <tr>
	  <th>显示样式:</th>
      <php>$cat=array('radio'=>'单选','checkbox'=>'多选','text'=>"文本");</php>
	  <td><html:select name="showtype" options="cat" selected="vo['showtype']" />
	  </td>
	  </tr>
</table>
<div class="btn">{__TOKEN__}
<if condition="$vo[id]!=''"><input TYPE="hidden" name="id" value="{$vo.id}"></if>
<INPUT TYPE="submit"  value="{:L('save')}" class="button" >
<input TYPE="reset"  value="{:L('reset')}" class="button">
</div>
</form>
</div>
</script>